package render

import (
	"MetroBuilderGameJam/gameEngine/geom"
	"github.com/hajimehoshi/ebiten/v2"
)

type debugDrawingFunc = func(screen *ebiten.Image)

var debugDrawing []debugDrawingFunc

func AddDebugDrawing(f debugDrawingFunc) {
	debugDrawing = append(debugDrawing, f)
}

type Debug struct {
}

func (b *Debug) Draw(screen *ebiten.Image) geom.Collider {
	for _, df := range debugDrawing {
		df(screen)
	}

	return &geom.ColliderPoint{}
}
